package cn.oa.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.oa.dao.SystemRoleMapper;
import cn.oa.pojo.SystemRole;

@Controller
public class RoleController {

	@Resource(name = "systemRoleMapper")
	SystemRoleMapper srm;

	@RequestMapping("/rolelist")
	public String rolelist(HttpServletRequest request) {
		List<SystemRole> list = srm.selectAll();
		request.setAttribute("list", list);
		return "role/rolelist";
	}

}
